<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2022/9/27
  Time: 11:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>首页</title>

    <!-- 1. 导入CSS的全局样式 -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <!-- 2. jQuery导入，建议使用1.9以上的版本 -->
    <script src="js/jquery-2.1.0.min.js"></script>
    <!-- 3. 导入bootstrap的js文件 -->
    <script src="js/bootstrap.min.js"></script>
    <script type="text/javascript">
    </script>
    <script>
        $(document).read(function (){
            var username = $("#username").val();
            $("btn").click(function (){
                location.href="http://localhost:8080/findAll?username="+username;
            })
        })
    </script>
</head>
<body>
<div align="center">
    <a href="${pageContext.request.contextPath}/findAll?pageSize=5" style="text-decoration:none;font-size:33px">查询所有用户信息
    </a>
    <br>
    <form action="/findAll" method="post">
        <div class="col-lg-3" >
            <div class="input-group">
                <input type="text" class="form-control" id="username" name="username" placeholder="输入用户名查询">
                <input id="btn" type="submit" value="查询">
            </div>
        </div>
    </form>
</div>
</body>
</html>
